package com.emep.changzhi.analyse.entity.datamonitor.realtime;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author xy
 * @Description: 工业废气监测_实时数据表
 * @date 2018/2/27 11:11
 * @version V1.0
 */
@Data
@Entity
@Table(name = "data_realtime_industrial_gas")
public class IndustrialGasRealtime2 implements Serializable {
    private static final long serialVersionUID = 5249837066608193464L;
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id;
    @Column(name = "area_code",columnDefinition="varchar(100) COMMENT '行政区划code'")
    private String areaCode;
    @Column(name = "mn",columnDefinition="varchar(100) COMMENT '设备mn号'")
    private String mn;
    @Column(name = "company_id",columnDefinition="varchar(100) COMMENT '企业id'")
    private String companyId;
    @Column(name = "outlet_id",columnDefinition="varchar(100) COMMENT '排口id'")
    private String outletId;
    @Column(name = "packet_date",columnDefinition="varchar(100) COMMENT '报文时间'")
    private String packetDate;
    @Column(name = "SO2_value",columnDefinition="varchar(100) COMMENT '污染物简称_检测值'")
    private String SO2_value;
    @Column(name = "SO2_status",columnDefinition="varchar(100) COMMENT '污染物简称_状态'")
    private String SO2_status;
    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '创建时间'" )
    @OrderBy("create_date DESC")
    private String createDate =  String.valueOf(System.currentTimeMillis());
}
